#!/bin/bash

if [ $# == 1 ]
then
	echo "Iniciando compilación..."
	/opt/lejos/bin/nxjc $1.java

	echo "Iniciando enlazado..."
	/opt/lejos/bin/nxjlink $1 -o $1.nxj

	echo "Subiendo al robot..."
	/opt/lejos/bin/nxjupload $1.nxj
else
	echo "Faltan parametros."
fi
